<div id="error"></div>
<?php
    if($this->data == null && $this->database == null)
    {
        if(($this->action != 'edit' && $this->action != 'add')) {
            echo '<div class="notfound">Employees Has Not Been Added</div>';
        }
    }
?>
<table id="anggota">
    <thead>
        <tr><td>NIK</td><td>Nama Pegawai</td><td>E-mail</td><?php if($this->action == 'edit' || $this->action == 'add') {?><td></td><?php } ?></tr>
    </thead>
    <tbody id="data">
        <?php
            if($this->data != null)
            {
                echo $this->partial('partials/anggota.phtml',array('data' => $this->data, 'action' => $this->action));
            }
            if($this->database != null)
            {
                echo $this->partialLoop('partials/anggota.phtml',array('data' => $this->database, 'action' => $this->action));
            }
            ?>
    </tbody>
</table>